<?php
ini_set('error_reporting', 6143);
ini_set('display_errors','1');
ini_set('wincache.fcenabled','0');
define('IN_LC', true);
define('MM_ID', 0);

include_once("validate.php");
include_once("includes/style.php");
include_once('includes/server_list.php');
include_once('includes/server_detail.php');
include_once('includes/renderInclude.php');

$style = new style(true);

$style->addHeader('<meta http-equiv="expires" content="0">');
$style->addHeader('<meta http-equiv="cache-control" content="no-cache"><meta http-equiv="pragma" content="no-cache">');

$style->addJavascript('js/ajax.js');

$id = 1;
if(isset($_GET['id']))
{
	$id = $_GET['id'];
}

$list = new server_list($id);
$detail = new server_detail($list->port);
$style->addRenderLeft($list);
$style->addRenderRight(new renderText(
          "<script type=\"text/javascript\">
	makeRequestTimeout(\"ajax/liveview.php\",\"?port=" . $list->port."\",\"serverDetails\",6000)</script>"));
$style->addRenderRight(new renderText('<span id="serverDetails"></span>'));
$style->render();
?>